package com.syni.mdd.yhd.common.all.dto.requestDto;

import com.syni.mdd.yhd.common.all.validationGroup.GroupCheckPaging;
import com.syni.mdd.yhd.common.all.validationGroup.GroupDelete;
import com.syni.mdd.yhd.common.all.validationGroup.GroupUpdate;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @className BaseReDto
 * @description TOO
 * @Author cfx
 * @DATE 2019/7/8 16:34
 * @VERSION 1.0
 **/

@Data
public class BaseReDto implements Serializable {
    private String open_id;
    @NotNull(groups = GroupCheckPaging.class)
    private Integer pageNum;
    @NotNull(groups = GroupCheckPaging.class)
    private Integer pageSize;
    //@NotNull(groups = {GroupUpdate.class, GroupDelete.class})
    private Integer id;
    private String userId;
    private String token;
}
